package com.wzh.test.leetcode;

public class reverseLinkedList {
    public static void main(String[] args) {
        MyLinkedList linkedList = new MyLinkedList();
        linkedList.addNode(new MyLinkedList.Node("A"));
        linkedList.addNode(new MyLinkedList.Node("B"));
        linkedList.addNode(new MyLinkedList.Node("C"));
        linkedList.addNode(new MyLinkedList.Node("D"));
        linkedList.addNode(new MyLinkedList.Node("E"));

        //linkedList.printNode();
        linkedList.reverseWhile();
        linkedList.printNode();
    }
}
